package com.ruoyi.secondvitim.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 互动平台消息对象 vitim_message
 * 
 * @author alonso_ecit
 * @date 2025-11-17
 */
public class VitimMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 发送者ID */
    @Excel(name = "发送者ID")
    private Integer senderId;

    /** 发送者姓名 */
    @Excel(name = "发送者姓名")
    private String senderName;

    /** 发送者类型 */
    @Excel(name = "发送者类型")
    private String senderType;

    /** 接收用户ID */
    @Excel(name = "接收用户ID")
    private Integer receiverId;

    /** 接收用户名字 */
    @Excel(name = "接收用户名字")
    private String receiverName;

    /** 接收用户类型 */
    @Excel(name = "接收用户类型")
    private String receiverType;

    /** 用户内容 */
    @Excel(name = "用户内容")
    private String content;

    /** 时间戳 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "时间戳", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date timestamp;

    /** 是否已读 */
    @Excel(name = "是否已读")
    private String isRead;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSenderId(int senderId)
    {
        this.senderId = senderId;
    }

    public Integer getSenderId()
    {
        return senderId;
    }

    public void setSenderName(String senderName) 
    {
        this.senderName = senderName;
    }

    public String getSenderName() 
    {
        return senderName;
    }

    public void setSenderType(String senderType) 
    {
        this.senderType = senderType;
    }

    public String getSenderType() 
    {
        return senderType;
    }

    public void setReceiverId(int receiverId)
    {
        this.receiverId = receiverId;
    }

    public Integer getReceiverId()
    {
        return receiverId;
    }

    public void setReceiverName(String receiverName) 
    {
        this.receiverName = receiverName;
    }

    public String getReceiverName() 
    {
        return receiverName;
    }

    public void setReceiverType(String receiverType) 
    {
        this.receiverType = receiverType;
    }

    public String getReceiverType() 
    {
        return receiverType;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setTimestamp(Date timestamp) 
    {
        this.timestamp = timestamp;
    }

    public Date getTimestamp() 
    {
        return timestamp;
    }

    public void setIsRead(String isRead) 
    {
        this.isRead = isRead;
    }

    public String getIsRead() 
    {
        return isRead;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("senderId", getSenderId())
            .append("senderName", getSenderName())
            .append("senderType", getSenderType())
            .append("receiverId", getReceiverId())
            .append("receiverName", getReceiverName())
            .append("receiverType", getReceiverType())
            .append("content", getContent())
            .append("timestamp", getTimestamp())
            .append("isRead", getIsRead())
            .append("createTime", getCreateTime())
            .toString();
    }
}
